package tech.ideashare;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import tech.ideashare.dao.PostDao;
import tech.ideashare.model.PostArticle;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public class AdminMain extends Application{
    @Override
    public void start(Stage primaryStage) throws Exception{
        //加载资源文件,用于定义界面
        Parent root = FXMLLoader.load(getClass().getResource("/admin.fxml"));
        //整个窗体的设置
        primaryStage.setTitle("tiebaPost");
        primaryStage.setScene(new Scene(root, 800, 600));
        primaryStage.show();
    }


    public static void main(String[] args) {


        launch(args);

    }
}
